<%--
  Created by IntelliJ IDEA.
  User: ToQuery
  Date: 2016/10/27
  Time: 17:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<button id="send">fa song</button>
<br/>
<textarea id="show">

</textarea>
<script src="//cdn.bootcss.com/jquery/1.12.4/jquery.js"></script>
<script>
    $(function () {
        var user = {};
        user.userName = "test1";
        user.pwd = "test1pwd";

        $('#send').click(function () {
            $.ajax({
                type: "put",
                url: "put",
                data: user,
                dataType: "json",
                success: function (data) {
                    console.table(data);
                }
            })
            ;
        });
    })
</script>
</body>
</html>
